package com.horse.cloud.framework.general.response;

import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @create : Created by intelliJ IDEA 16.1.3
 * @author : bing.Pan
 * @e-mail : 15923508369@163.com
 * @gmdate : 2017/11/26 13:52
 * @sidesc : 对个微服务器执行后的返回结果进行日志打印，并过滤知悉主机信息
 */
public class ResponseReceive {

    private static final Logger LOGGER = LoggerFactory.getLogger(ResponseReceive.class);

    public static Response receive(Response response){
        LOGGER.info("【framework】 获取到微服务返回值为: [{}]",response.toString());
        response.setExecuteHost(StringUtils.EMPTY);
        return response;

    }



}
